﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Fight.userControls
{
    public partial class fighter : UserControl, INotifyPropertyChanged
    {
        #region sideProperties
        public general.fighterSide fighterMode
        {
            set
            {
                switch (value)
                {
                    case general.fighterSide.leftPlayer:   ; break;
                    case general.fighterSide.rightPlayer:/*Flip the player 180 degree*/ ; break;
                    default: throw new NotImplementedException();
                }
                NotifyPropertyChanged("fighterSide");
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        public void NotifyPropertyChanged(string fighterCHange)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(fighterCHange));
            }  
        }
        #endregion

        public fighter(general.fighterSide fighterMode)
        {
            InitializeComponent();
            this.fighterMode = fighterMode;
        }
    }
}
